
  ___  ____  ____  ____  ____ tm
 /__    /   ____/   /   ____/
___/   /   /___/   /   /___/   10.1   Copyright 1984-2009
  Statistics/Data Analysis            StataCorp
                                      4905 Lakeway Drive
     Special Edition                  College Station, Texas 77845 USA
                                      800-STATA-PC        http://www.stata.com
                                      979-696-4600        stata@stata.com
                                      979-696-4601 (fax)

Single-user Stata for Macintosh perpetual license:
       Serial number:  8410513912
         Licensed to:  commie john
                       

Notes:
      1.  (-m# option or -set memory-) 10.00 MB allocated to data
      2.  (-v# option or -set maxvar-) 5000 maximum variables
      3.  Command line editing disabled
      4.  Stata running in batch mode

. do fstat/table_2_iv_fstats_pct_treated.do 

. set more off

. 
. set mem 1000m

Current memory allocation
-------------------------

                    current                                 memory usage
    settable          value     description                 (1M = 1024k)
    --------------------------------------------------------------------
    set maxvar         5000     max. variables allowed           1.751M
    set memory         1000M    max. data space              1,000.000M
    set matsize         400     max. RHS vars in models          1.254M
                                                            -----------
                                                             1,003.006M

. set maxvar 5000  

Current memory allocation
-------------------------

                    current                                 memory usage
    settable          value     description                 (1M = 1024k)
    --------------------------------------------------------------------
    set maxvar         5000     max. variables allowed           1.751M
    set memory         1000M    max. data space              1,000.000M
    set matsize         400     max. RHS vars in models          1.254M
                                                            -----------
                                                             1,003.006M

. set matsize 5000

Current memory allocation
-------------------------

                    current                                 memory usage
    settable          value     description                 (1M = 1024k)
    --------------------------------------------------------------------
    set maxvar         5000     max. variables allowed           1.751M
    set memory         1000M    max. data space              1,000.000M
    set matsize        5000     max. RHS vars in models        191.154M
                                                            -----------
                                                             1,192.906M

. 
. use "~/Dropbox/hookworm/replication/fstat/pct_treatedBEFORE.dta", clear    
(Written by R.              )

. 
. ivreg210 y_dd tr_dd year vote1908 dem1908 school1900 litw1900 litb1900 pop190
> 0 urban1900 black1900 crop1900 nofarms1900 farmval1900 acre1900 bigfarm1900 t
> enant1900 mwages1900 mfactors1900 moutput1900 manworks1900 childlabor1900 (d_
> dd = tr_dd_year)

IV (2SLS) estimation
--------------------

Estimates efficient for homoskedasticity only
Statistics consistent for homoskedasticity only

                                                      Number of obs =     2588
                                                      F( 22,  2565) =   143.91
                                                      Prob > F      =   0.0000
Total (centered) SS     =  104.3167956                Centered R2   =   0.3852
Total (uncentered) SS   =  389.4270276                Uncentered R2 =   0.8353
Residual SS             =  64.13089402                Root MSE      =    .1574

------------------------------------------------------------------------------
        y_dd |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
        d_dd |   1.747657   .8834706     1.98   0.048     .0160861    3.479227
       tr_dd |   -.018464   .0113651    -1.62   0.104    -.0407392    .0038111
        year |  -.2457312   .0928636    -2.65   0.008    -.4277405   -.0637218
    vote1908 |   .5612488   .0742349     7.56   0.000     .4157511    .7067464
     dem1908 |  -.0211759   .0139532    -1.52   0.129    -.0485236    .0061718
  school1900 |  -.0669682    .048056    -1.39   0.163    -.1611563    .0272199
    litw1900 |  -1.058589   .6050377    -1.75   0.080    -2.244441    .1272635
    litb1900 |  -.0871826   .0343262    -2.54   0.011    -.1544608   -.0199044
     pop1900 |   .0050368    .019404     0.26   0.795    -.0329944    .0430679
   urban1900 |    -.09569   .0695293    -1.38   0.169    -.2319649    .0405849
   black1900 |   .1867956   .1540885     1.21   0.225    -.1152123    .4888034
    crop1900 |  -.0119179   .0126203    -0.94   0.345    -.0366532    .0128173
 nofarms1900 |  -.0360321   .0204383    -1.76   0.078    -.0760903    .0040262
 farmval1900 |    .047238   .0186521     2.53   0.011     .0106805    .0837955
    acre1900 |  -.0224586   .0249282    -0.90   0.368     -.071317    .0263998
 bigfarm1900 |   -.004948   .0410213    -0.12   0.904    -.0853482    .0754522
  tenant1900 |   .1282825   .0930682     1.38   0.168    -.0541278    .3106929
  mwages1900 |  -.0128595   .0077825    -1.65   0.098    -.0281129    .0023939
mfactors1900 |   -.034894   .0188684    -1.85   0.064    -.0718754    .0020874
 moutput1900 |   .0191888   .0083184     2.31   0.021      .002885    .0354925
manworks1900 |   .3346286   .2776154     1.21   0.228    -.2094876    .8787447
childla~1900 |  -.8200582   .5896606    -1.39   0.164    -1.975772    .3356554
       _cons |  -.2413233   .2013852    -1.20   0.231     -.636031    .1533844
------------------------------------------------------------------------------
Underidentification test (Anderson canon. corr. LM statistic):           5.862
                                                   Chi-sq(1) P-val =    0.0155
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):                5.823
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
------------------------------------------------------------------------------
Sargan statistic (overidentification test of all instruments):           0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         d_dd
Included instruments: tr_dd year vote1908 dem1908 school1900 litw1900 litb1900
                      pop1900 urban1900 black1900 crop1900 nofarms1900
                      farmval1900 acre1900 bigfarm1900 tenant1900 mwages1900
                      mfactors1900 moutput1900 manworks1900 childlabor1900
Excluded instruments: tr_dd_year
------------------------------------------------------------------------------

.     
. 
. use "~/Dropbox/hookworm/replication/fstat/pct_treatedAFTER.dta", clear    
(Written by R.              )

. 
. ivreg210 y_dd tr_dd year vote1908 dem1908 school1900 litw1900 litb1900 pop190
> 0 urban1900 black1900 crop1900 nofarms1900 farmval1900 acre1900 bigfarm1900 t
> enant1900 mwages1900 mfactors1900 moutput1900 manworks1900 childlabor1900 (d_
> dd = tr_dd_year)

IV (2SLS) estimation
--------------------

Estimates efficient for homoskedasticity only
Statistics consistent for homoskedasticity only

                                                      Number of obs =     2588
                                                      F( 22,  2565) =   225.84
                                                      Prob > F      =   0.0000
Total (centered) SS     =  104.4144916                Centered R2   =   0.6082
Total (uncentered) SS   =  389.8075836                Uncentered R2 =   0.8951
Residual SS             =  40.90981491                Root MSE      =    .1257

------------------------------------------------------------------------------
        y_dd |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
        d_dd |    1.14454   .4398889     2.60   0.009     .2823732    2.006706
       tr_dd |  -.0199944   .0087095    -2.30   0.022    -.0370647   -.0029242
        year |  -.1825798   .0463641    -3.94   0.000    -.2734518   -.0917079
    vote1908 |   .6110852   .0390797    15.64   0.000     .5344903    .6876801
     dem1908 |  -.0167326   .0103143    -1.62   0.105    -.0369483     .003483
  school1900 |  -.0368425   .0279517    -1.32   0.187    -.0916268    .0179419
    litw1900 |  -.6522112   .3061322    -2.13   0.033    -1.252219   -.0522031
    litb1900 |  -.0807189   .0262931    -3.07   0.002    -.1322524   -.0291854
     pop1900 |  -.0060413   .0118296    -0.51   0.610    -.0292269    .0171442
   urban1900 |  -.0558615   .0405883    -1.38   0.169    -.1354131    .0236902
   black1900 |   .0857829   .0790642     1.08   0.278      -.06918    .2407458
    crop1900 |  -.0072287   .0089435    -0.81   0.419    -.0247576    .0103002
 nofarms1900 |   -.021857   .0112095    -1.95   0.051    -.0438271    .0001132
 farmval1900 |   .0348209   .0101444     3.43   0.001     .0149383    .0547036
    acre1900 |  -.0146641   .0179671    -0.82   0.414     -.049879    .0205507
 bigfarm1900 |  -.0217779   .0281353    -0.77   0.439     -.076922    .0333663
  tenant1900 |   .0628531   .0479909     1.31   0.190    -.0312073    .1569136
  mwages1900 |  -.0110708   .0060677    -1.82   0.068    -.0229632    .0008216
mfactors1900 |  -.0231023   .0107559    -2.15   0.032    -.0441836   -.0020211
 moutput1900 |   .0154928   .0058569     2.65   0.008     .0040135    .0269722
manworks1900 |   .2641101   .2130084     1.24   0.215    -.1533787    .6815989
childla~1900 |  -.5377991   .4028672    -1.33   0.182    -1.327404    .2518062
       _cons |  -.1163814    .123163    -0.94   0.345    -.3577764    .1250136
------------------------------------------------------------------------------
Underidentification test (Anderson canon. corr. LM statistic):          15.171
                                                   Chi-sq(1) P-val =    0.0001
------------------------------------------------------------------------------
Weak identification test (Cragg-Donald Wald F statistic):               15.125
Stock-Yogo weak ID test critical values: 10% maximal IV size             16.38
                                         15% maximal IV size              8.96
                                         20% maximal IV size              6.66
                                         25% maximal IV size              5.53
Source: Stock-Yogo (2005).  Reproduced by permission.
------------------------------------------------------------------------------
Sargan statistic (overidentification test of all instruments):           0.000
                                                 (equation exactly identified)
------------------------------------------------------------------------------
Instrumented:         d_dd
Included instruments: tr_dd year vote1908 dem1908 school1900 litw1900 litb1900
                      pop1900 urban1900 black1900 crop1900 nofarms1900
                      farmval1900 acre1900 bigfarm1900 tenant1900 mwages1900
                      mfactors1900 moutput1900 manworks1900 childlabor1900
Excluded instruments: tr_dd_year
------------------------------------------------------------------------------

. 
end of do-file
